﻿<!doctype html>
<html class="no-js" lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">

<head th:replace="~{/public::public-head}">
</head>
<style type="text/css">
    .error{
        color: red;
        text-align: center;
    }
</style>
<body class="template-color-1">

    <div id="main-wrapper">
        <div th:insert="~{/public::navigate}"></div>
        <div style="height: 100px; border-bottom: 1px solid #e2e4ea"></div>

        <!-- 中间部分 Start -->
        <div class="dashboard-content-section section bg_color--5">
            <div class="container-fluid p-0">
                <div class="row no-gutters">
                    <!-- 侧边栏 -->
                    <div th:replace="~{/public::sidebar(active='changePassword')}"></div>
                    <!-- 具体内容 -->
                    <div class="col-xl-10 col-lg-9">

                    <span  sec:authorize="isAuthenticated()" sec:authentication="principal.userId"
                            type="text" id="userId" hidden></span>

                        <div class="dashboard-main-inner">
                            <div class="row">
                                <div class="col-12">
                                    <div class="page-breadcrumb-content mb-40">
                                        <h1>修改密码</h1>
                                    </div>
                                </div>
                            </div>
                            <div class="dashboard-overview">
                                <div class="row">
                                    <div class="col-xl-12 col-12">
                                        <div class="profile-applications mb-50">
                                            <div class="profile-applications-main-block">
                                                <div class="profile-applications-form">
                                                    <form action="#">

                                                        <div class="row">
                                                            <div class="col-lg-10">
                                                                <div class="single-input mb-25">
                                                                    <label>当前的密码</label>
                                                                    <input class="form-control" type="password" id="password" placeholder="当前的密码">
                                                                    <p class="error" id="error-1"></p>
                                                                </div>
                                                            </div>


                                                            <div class="col-lg-10">
                                                                <div class="single-input mb-25">
                                                                    <label>新密码</label>
                                                                    <input class="form-control" type="password" id="first_new_pwd" placeholder="新密码">
                                                                    <p class="error" id="error-2"></p>
                                                                </div>
                                                            </div>

                                                            <div class="col-lg-10">
                                                                <div class="single-input mb-25">
                                                                    <label>确认新密码</label>
                                                                    <input class="form-control" type="password" id="second_new_pwd" placeholder="确认新密码">
                                                                    <p class="error" id="error-3"></p>
                                                                </div>
                                                            </div>
                                                        </div>


                                                        <div class="row">
                                                            <div class="col-12" style="text-align: center;">
                                                                <button class="ht-btn theme-btn theme-btn-two" onclick="submitPassword();return false;" id="submit" style="background-color: #808080c2" disabled="">确认更新</button>
                                                            </div>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 中间部分 End -->

        <div th:insert="~{/public::footer}"></div>
    </div>

    <div th:replace="~{/public::public-js}"></div>

    <script th:src="@{/js/plugins/jsencrypt.min.js}"></script>
    <script th:src="@{/js/myjob/account/changePassword.js}"></script>

</body>

</html>
